package com.ruoyi.audit.service.impl;

import java.util.List;

import com.ruoyi.domain.HomeRecyclingDetailOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.audit.mapper.HomeRecyclingDetailOrderMapper;
import com.ruoyi.audit.service.IHomeRecyclingDetailOrderService;

/**
 * 上门回收审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-24
 */
@Service
public class HomeRecyclingDetailOrderServiceImpl implements IHomeRecyclingDetailOrderService 
{
    @Autowired
    private HomeRecyclingDetailOrderMapper homeRecyclingDetailOrderMapper;

    /**
     * 查询上门回收审核
     * 
     * @param detailorderid 上门回收审核ID
     * @return 上门回收审核
     */
    @Override
    public HomeRecyclingDetailOrder selectHomeRecyclingDetailOrderById(Long detailorderid)
    {
        return homeRecyclingDetailOrderMapper.selectHomeRecyclingDetailOrderById(detailorderid);
    }

    /**
     * 查询上门回收审核列表
     * 
     * @param homeRecyclingDetailOrder 上门回收审核
     * @return 上门回收审核
     */
    @Override
    public List<HomeRecyclingDetailOrder> selectHomeRecyclingDetailOrderList(HomeRecyclingDetailOrder homeRecyclingDetailOrder)
    {
        return homeRecyclingDetailOrderMapper.selectHomeRecyclingDetailOrderList(homeRecyclingDetailOrder);
    }

    /**
     * 新增上门回收审核
     * 
     * @param homeRecyclingDetailOrder 上门回收审核
     * @return 结果
     */
    @Override
    public int insertHomeRecyclingDetailOrder(HomeRecyclingDetailOrder homeRecyclingDetailOrder)
    {
        return homeRecyclingDetailOrderMapper.insertHomeRecyclingDetailOrder(homeRecyclingDetailOrder);
    }

    /**
     * 修改上门回收审核
     * 
     * @param homeRecyclingDetailOrder 上门回收审核
     * @return 结果
     */
    @Override
    public int updateHomeRecyclingDetailOrder(HomeRecyclingDetailOrder homeRecyclingDetailOrder)
    {
        return homeRecyclingDetailOrderMapper.updateHomeRecyclingDetailOrder(homeRecyclingDetailOrder);
    }

    /**
     * 批量删除上门回收审核
     * 
     * @param detailorderids 需要删除的上门回收审核ID
     * @return 结果
     */
    @Override
    public int deleteHomeRecyclingDetailOrderByIds(Long[] detailorderids)
    {
        return homeRecyclingDetailOrderMapper.deleteHomeRecyclingDetailOrderByIds(detailorderids);
    }

    /**
     * 删除上门回收审核信息
     * 
     * @param detailorderid 上门回收审核ID
     * @return 结果
     */
    @Override
    public int deleteHomeRecyclingDetailOrderById(Long detailorderid)
    {
        return homeRecyclingDetailOrderMapper.deleteHomeRecyclingDetailOrderById(detailorderid);
    }
}
